<template>
    <div class="person-box">
            <header class="person-head">
                <div class="person-head-box">
                    <div class="iconbox">
                        <i class="iconfont back" @click="backAction">&#xe618;</i>
                    </div>
                    <h1 class="person-name">我的</h1>
                </div>
            </header>  
            <section>
                <div class="person-login-box">
                    <span class="person-img">
                        <i class="iconfont">&#xe687;</i>
                    </span>
                    <div class="person-login-select">
                        <router-link to='/loginpage'>
                            <p class="person-login-title">登录/注册</p>
                        </router-link>
                        <p class="person-login-b">
                            <i class="iconfont">&#xe648;</i>
                            <span>登录后享受更多特权</span>
                        </p>
                    </div>
                    <span>&gt;</span>
                </div>
            </section>
            <div id="activity">
			<div class="youhui">
				<div>
					<img src="../assets/img/10.png" alt=".." />
					<span>优惠</span>
				</div>
			</div>
			<div class="jifen">
				<div>
					<img src="../assets/img/11.png" alt=".." />
					<span>积分</span>
				</div>
			</div>
		</div>
		<section>
			<ul>
				<li>
					<img src="../assets/img/12.png" alt=".." />
					<h2><span>我的订单</span><i>&gt;</i></h2>
				</li>
				<li>
					<img src="../assets/img/13.png" alt=".." />
					<h2><span>积分商城</span><i>&gt;</i></h2>
				</li>
				<li>
					<img src="../assets/img/14.png" alt=".." />
					<h2><span>饿了么会员卡</span><i>&gt;</i></h2>
				</li>
			</ul>
			<ol>
				<li>
					<img src="../assets/img/15.png" alt=".." />
					<h2><span>服务中心</span><i>&gt;</i></h2>
				</li>
				<li>
					<img src="../assets/img/16.png" alt=".." />
					<h2><span>下载饿了么APP</span><i>&gt;</i></h2>
				</li>
			</ol>
		</section>
        <Footerpage></Footerpage>
    </div>
</template>
<script>
import Footerpage from './Footer'
export default {
  name:'personpage',
  components: {
    Footerpage
  },
  methods: {
      backAction () {
          history.go(-1)
      }
  }
}
</script>

<style lang='scss'>
@import '../../static/px2rem.scss';
.person-box{
    .person-head{
        height: px2rem(44);
        .person-head-box{
            background-image: linear-gradient(90deg,#0af,#0085ff);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            height: px2rem(44);
            color: #fff;
            font-size: px2rem(18);
            background: #2395ff;
            .person-name{
                position: absolute;
                top: 0;
                left: 50%;
                height: px2rem(44);
                max-width: 50%;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-weight: 700;
                font-size: 1em;
                line-height: px2rem(44);
                transform: translateX(-50%);
            }
            .iconbox{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: px2rem(44); 
                    height: px2rem(44);
                    .back{
                         display: block;
                        width: px2rem(20);
                        height: px2rem(20);
                        color: #fff;
                        position: absolute;
                        left: px2rem(12);
                        top: px2rem(12);
                        font-size: px2rem(18)
                    }
               }
            }
    }
    .person-login-box{
        display: flex;
        background-image: linear-gradient(90deg,#0af,#0085ff);
        padding: px2rem(15) px2rem(25);
        color: #fff;
        align-items: center;
        .person-img{
            width: px2rem(60);
            height: px2rem(60);
            line-height: px2rem(60);
            border-radius: 50%;
            background: #fff;
            display: inline-block;
            vertical-align: middle;
            text-align: center;
            i{
                color: #eee;
                font-size:px2rem(40);
            }
        }
        .person-login-select{
            margin-left: px2rem(18);
            flex-grow: 1;
            a{
                color: #fff;
            }
            .person-login-title{
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                font-size: px2rem(22);
                margin-bottom: px2rem(8);
            }
            .person-login-b{
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: flex;
                align-items: center;
                font-size: px2rem(14);
                i{
                    font-size: px2rem(16)
                }
            }
        }
    }
    #activity{
        height: px2rem(80);
        border-bottom: px2rem(1) solid #efefef;
        .youhui,.jifen{
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50%;
            float: left;
            height: 100%;
            background: white;
            div{
                display: flex;
                flex-direction: column;
                align-items: center;
                img{
                    display: block;
                    height: px2rem(25);
                    width: px2rem(25);
                }
                span{
                    display: block;
                    margin-top: px2rem(5);
                    font-size: px2rem(13);
                }
            }
        }
        .youhui{
            width: 49%;
            border-right: px2rem(1) solid #efefef;
        }
    }
    section{
        flex: 1;
        background: #f5f5f5;
        ul,ol{
            width: 100%;
            float: left;
            border-top: px2rem(1) solid #efefef;
            border-bottom: px2rem(1) solid #efefef;
            li{
                width: 100%;
                height: px2rem(40);
                background: white;
                float: left;
                img{
                    margin: px2rem(11) px2rem(10) px2rem(12) px2rem(15);
                    float: left;
                    height: px2rem(16);
                    width: px2rem(15);
                }
                h2{
                    float: left;
                    height: px2rem(39);
                    width: 89%;
                    border-bottom: px2rem(1) solid #f0f0f0;
                    line-height: px2rem(39);
                    font-size: px2rem(15);
                    font-weight: normal;
                    i{
                        float: right;
                        margin-right: px2rem(12);
                        color: #c1c1c1;
                    }
                }
            }
        }
        ul{
            margin: px2rem(9) 0;
        }
    }
    footer {
    height: px2rem(50);
    border-top: px2rem(3) solid #f4f4f4;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background: white;
      div {
        width: 25%;
        height: 100%;
        .router-link-active{
        color: #0089dc!important;
        }
        a{   
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #999;
        i{
            margin-bottom: px2rem(3);
            font-size: px2rem(23);
            font-weight: bold;
            
        }
        span {
            font-size: px2rem(10);
           
        }
        }
    }
  }
}
</style>
